package com.bloody.android.Map;

public class CaseFactory {
	
	private CaseFactory(){}
	
	public static Case getInstance(int type, int row, int col)
	{
		Case instance = null;
    	switch (type)
    	{
    		case 1 :
    			instance = new Terre(col, row);
    			break;
    		case 2 :
    			instance = new Pierre(col, row);
    			break;
    		case 3 :
    			instance = new Eau(col, row);
    			break;
    		default :
    			break;
    	}
    	return instance;
	}

}
